package Day17;

import java.util.Scanner;

public class Test1 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        while (in.hasNextInt()) { // 注意 while 处理多个 case
            int n = in.nextInt();
            int count = 0;
            int x = n;
            while (x != 0) {
                count++;
                x /= 10;
            }
            int[] ret = new int[count];
            int len = count;
            while (n != 0) {
                int a = n % 10;
                ret[count - 1] = a & 1;
                count--;
                n /= 10;
            }
            StringBuilder result = new StringBuilder();
            int Len = len;
            for (int i = 0; i < len; i++) {
                result.append(ret[i]);
                if(ret[i] == 0){
                    Len--;
                }
                if(Len == 0){
                    System.out.print("0");
                    return;
                }
            }
            System.out.print(result);
        }
    }
}
